set(LLVM_LINK_COMPONENTS
  Support
  )

add_circt_tool(hlstool
  hlstool.cpp
  )
llvm_update_compile_flags(hlstool)
target_link_libraries(hlstool
  PRIVATE

  CIRCTDC
  CIRCTDCTransforms
  CIRCTDCToHW
  CIRCTESI
  CIRCTExportVerilog
  CIRCTHandshake
  CIRCTHandshakeToDC
  CIRCTHandshakeToHW
  CIRCTHandshakeTransforms
  CIRCTHW
  CIRCTHWTransforms
  CIRCTSeq
  CIRCTSeqToSV
  CIRCTSeqTransforms
  CIRCTCFToHandshake
  CIRCTSV
  CIRCTSVTransforms
  CIRCTSCFToCalyx
  CIRCTCalyx
  CIRCTCalyxNative
  CIRCTCalyxTransforms
  CIRCTCalyxToHW
  CIRCTCalyxToFSM
  CIRCTFSM
  CIRCTFSMTransforms
  CIRCTFSMToSV
  CIRCTTransforms

  MLIRIR
  MLIRLLVMDialect
  MLIRMemRefDialect
  MLIROptLib
  MLIRParser
  MLIRControlFlowDialect
  MLIRSupport
  MLIRTransforms
  MLIRSCFToControlFlow
  )
